import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'
import Home from './components/Home.vue'
import LoveApp from './components/LoveApp.vue'
import ManusApp from './components/ManusApp.vue'
import './style.css'

// 路由配置
const routes = [
  { path: '/', component: Home },
  { path: '/love-app', component: LoveApp },
  { path: '/manus-app', component: ManusApp }
]

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes
})

// 创建Vue应用实例
const app = createApp(App)
app.use(router)
app.mount('#app')